package examlab;

class XSync implements Runnable{
	  public void run(){
	    synchronized("x"){
	    	System.out.print("X 2,");
	    	System.out.print("X 3,");
	    	System.out.print("X 4,");
	    	System.out.print("X 5,");
	    	System.out.print("X 6,");
	    	System.out.print("X 7,");
	    	System.out.print("X 8,");
	    	System.out.print("X 9,");
	    	System.out.print("X 0,");
	      
	      this.run2();
	    }
	  }
	  public void run2(){
	    synchronized("x"){
	      System.out.print("Y 1,");
	      System.out.print("Y 2,");
	      System.out.print("Y 3,");
	      System.out.print("Y 4,");
	      System.out.print("Y 5,");
	      System.out.print("Y 6,");
	      System.out.print("Y 7,");
	      System.out.print("Y 8,");
	      System.out.print("Y 9,");
	      System.out.print("Y 0,");
	      System.out.print("Y 10,");
	      System.out.print("Y 11,");
	    }
	  }
	}